package org.lq.er.service.impl;

import java.util.List;

import org.lq.er.dao.Exam_positionDao;
import org.lq.er.dao.impl.Exam_positionDaoImpl;
import org.lq.er.entity.Exam_position;
import org.lq.er.service.Exam_positionService;

/**
 * 考场业务层实现类
 * @author  张鹤山
 *
 */
public class Exam_positionServiceImpl implements Exam_positionService {

	Exam_positionDao ed = new Exam_positionDaoImpl();
	
	/**
	 * 添加考场
	 */
	@Override
	public boolean save(Exam_position t) {
		return ed.save(t)>0;
	}

	/**
	 * 修改考场
	 */
	@Override
	public boolean update(Exam_position t) {
		return ed.update(t)>0;
	}

	/**
	 * 删除考场
	 */
	@Override
	public boolean delete(int id) {
		return ed.delete(id)>0;
	}

	/**
	 * 查询所有考场
	 */
	@Override
	public List<Exam_position> findAll() {
		return ed.findAll();
	}

	/**
	 * 按编号查询考场
	 */
	@Override
	public Exam_position getById(int id) {
		return ed.getById(id);
	}

}
